<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<!DOCTYPE html>
<html>
<head>
<title>新增新闻栏目</title>
<%@ include file="/WEB-INF/views/manager/include.inc.jsp"%>
<link rel="stylesheet" href="${contextPath }/styles/validationEngine/css/validationEngine.jquery.css">
<link rel="stylesheet" href="${contextPath }/styles/zTree/css/zTreeStyle/zTreeStyle.css">
<script src="${contextPath }/styles/validationEngine/js/jquery.validationEngine-zh_CN.js"></script>
<script src="${contextPath }/styles/validationEngine/js/jquery.validationEngine.min.js"></script>
</head>
<body>	
<!--top s-->
<c:import url="/public/header?tag=Config" />
<!--top end-->
<div class="m_main"> 
  <!--left s-->
  <c:import url="/public/left?tag=Config&tag1=ArticleColumn" />
  <!--left end--> 
  <!--right s-->
  <div class="m_right fl">
    <div class="r_box">
      <div class="title1">
        <h3>新增新闻栏目</h3>
      </div>
      <div class="listbox ovh">
        <form id="form" method="post" action="${contextPath }/manager/article/column/create" onsubmit="return validateCallback(this, callbackRef);">
          <ul class="dept2 fmy">
            <li>
              <div class="spant tr fl"><span class="s_red">*</span><span class="justify">父栏目</span></div>
              <input id="select_parent" type="text" class="treeint intt2 ell validate[required]" readonly />
              <input type="hidden" name="parent.id" />
            </li>
            <li>
              <div class="spant tr fl justify"><span class="s_red">*</span><span class="justify">名称</div>
              <div style="position:relative;margin-bottom: 30px;"><input name="name" type="text" class="intt validate[required,maxSize[16]]" /></div>
            </li>
            <li>
              <div class="spant tr fl justify"><span class="s_red">*</span><span class="justify">优先级</div>
              <div style="position:relative;margin-bottom: 30px;"><input name="priority" type="text" class="intt validate[required,custom[integer],min[1],max[999]]" /></div>
            </li>
          </ul>
          <div class="btn_box tc ovh">
            <input type="button" class="back_btn" onclick="history.go(-1)" value="返 回" />
            <input type="submit" name="submit" class="keep_btn" value="保 存">
          </div>
        </form>
      </div>
    </div>
  </div>
  <!--right end--> 
</div>
<div class="foot"></div>
<div id="select_tree_menu_parent" class="menuContent" style="display:none; position: absolute; z-index:32; width:200px; background-color:#FFF; border:1px solid rgb(175,175,175); border-top:none;">
  <ul id="select_tree_parent" class="ztree" style="margin-top:0; width:160px;"></ul>
</div>
<script src="${contextPath }/styles/zTree/jquery.ztree.core.min.js"></script>
<script src="${contextPath }/styles/public/js/zTreeUtil.js"></script>
<script>
function close2refresh() {
	goToPage("${contextPath}/manager/article/column/list");
}
$(function(){
	zTreeUtil.init("select_parent", JSON.parse('${columnList}'));
});
</script>
</body>
</html>